/*
 * @Description: 
 * @Author: changqing
 * @Date: 2021-08-29 20:04:13
 * @LastEditTime: 2021-08-29 20:05:16
 * @LastEditors: changqing
 * @Usage: 
 */

//将浏览器事件包装成Observable，有两个参数
// target 需要监听的DOM元素
// eventName 事件名称

var { fromEvent } = require('rxjs');
fromEvent(document, "click").subscribe((data) => {
	console.log("fromEvent 示例: document事件触发了");
});